home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / castools.zip / FUNC16H.ASM < prev    next >
Assembly Source File  |  1989-09-15  |  1KB  |  40 lines

  1. Include multi.inc
  2. Include model.inc
  3.  
  4. ;==============================================================================
  5. ;
  6. ;   CAS function 16h -- Unload Resident Manager
  7. ;   
  8. ;   Format:
  9. ;               int CASUnloadResidentManager ()
  10. ;   Input:
  11. ;               none
  12. ;   Output:
  13. ;               Returns 0 if successful or negative error code
  14. ;==============================================================================
  15.  
  16.                 .CODE
  17. CASUnloadResidentManager    PROC     
  18.  
  19.                 push    bx              ; save registers
  20.                 push    cx      
  21.                 push    dx
  22.                 
  23.                 mov     ax,MUX          ; load multiplex number
  24.                 mov     ah,al           ; move into ah
  25.                 mov     al,16h          ; CAS function 16
  26.                 mov     bx,1234h        ; event handle
  27.                 mov     cx,5678h        ; receive file number
  28.                 mov     dx,9ABCh        ; queue to search 
  29.                 int     2Fh
  30.  
  31.                 pop     dx              ; restore registers
  32.                 pop     cx
  33.                 pop     bx                 
  34.                 ret
  35. CASUnloadResidentManager    endp
  36.      
  37.                 END
  38.                 
  39.  
  40.